package com.polaris.live.widget.marqueen

import android.content.Context
import android.view.LayoutInflater
import android.widget.TextView
import com.polaris.live.R

/**
 * 简单字幕
 */
class SimpleNoticeMF(context: Context) : MarqueeFactory<TextView?, String>(context) {
    private val inflater: LayoutInflater

    init {
        inflater = LayoutInflater.from(context)
    }

    override fun generateMarqueeItemView(data: String): TextView {
        val view = inflater.inflate(R.layout.layout_notice_marqueen_item, null) as TextView
        view.text = data
        return view
    }
}